import React, {Component} from 'react';

export default class Home extends Component {
    render() {
        // console.log(this.props,'>>>>>')
        const {match:{params}}=this.props
        return (
            <div>
                <h2>Home:match params传参</h2>
                <ul>
                    <li>传递: link跳转时to/需要传递的信息 </li>
                    <li>接收：route接收path时/:接收信息的变量名</li>
                    <li>使用：props里的match.params</li>
                </ul>
                <div>接收/home用params传递过来的参数：{params.info}</div>
            </div>
        );
    }
}
